package com.wanxi.list;

import java.util.ArrayList;
import java.util.List;

public class MyFangXing {
    public static void main(String[] args) {

        List list = new ArrayList();
        list = getName(list, 1, 2, 3, 4, 5);
        System.out.println(list);
    }

    public static <T, K, A, B, C, D> K getName(K k, T t, A a, B b, C c, D d) {
//        System.out.println(k + "==" + t);
        List<Integer> list = (List<Integer>) k;
        list.add((Integer) a);
        list.add((Integer) b);
        list.add((Integer) c);
        list.add((Integer) d);
//        System.out.println(list);
        return (K) list;
    }
}
